// vue的getters快捷访问 类比vue的属性 计算属性
const getters = {
  // app模块的sidebar
  sidebar: state => state.app.sidebar,
  // app模块的device
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto
}
export default getters
